package com.argerie.HelloAndroid;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class HelloAndroidActivity extends Activity{
	private static final int ACTIVITY_CREATE=0;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        Button mGpsButton = (Button)findViewById(R.id.button_gps);
        Button mWifiButton = (Button)findViewById(R.id.button_wifi);
        Button mHelloButton = (Button)findViewById(R.id.button_hello);
    
        //mGpsButton.setOnClickListener(new OnClickListener());
    }
//    @Override
    public void clickHello(View v){
    	Intent myIntent = new Intent(null, Uri.parse("http://www.google.com"));
    	startActivityForResult(myIntent,0);
    }
    public void clickWiFi(View v){
    	//Intent i = new Intent(this, WiFiDemo.class);
    	//startActivityForResult(i, ACTIVITY_CREATE);
    	Intent intent = new Intent();
    	intent.setClassName("com.example", "com.example.WiFiDemo");
    	//intent.setClassName("com.argerie.HelloAndroid", "WiFiDemo");
    	//HelloAndroidActivity.this.startActivity(intent);
    	startActivity(intent);
    }
    public void clickGPS(View v){
    	//Intent i = new Intent(this, UseGps.class);
    	//startActivityForResult(i, ACTIVITY_CREATE);
    	//setContentView(R.layout.gps_layout);
    	Intent intent = new Intent();
    	intent.setClassName("net.cogitas.testing", "net.cogitas.testing.Home");
    	//HelloAndroidActivity.this.startActivity(intent);
    	//intent.setClassName("com.eclipsim", "com.eclipsim.gpsstatus2");
    	startActivity(intent);
    }
}